package org.giovanolli.mumi.view.validator;

import org.giovanolli.mumi.controller.business.SpecialityModel;
import org.giovanolli.mumi.entities.Speciality;
import org.giovanolli.mumi.entities.filter.EntityFilter;
import org.giovanolli.mumi.entities.filter.SpecialityFilter;
import org.giovanolli.mumi.service.Service;
import org.giovanolli.mumi.service.SpecialityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * The Class SpecialityModelValidator.
 */
@Component
public class SpecialityModelValidator extends AbstractViewStateModelValidator<Speciality, SpecialityModel> {

	/** The speciality service. */
	@Autowired
	private SpecialityService specialityService;

	/*
	 * (non-Javadoc)
	 * 
	 * @see org.giovanolli.mumi.view.validator.AbstractViewStateModelValidator#getFilter()
	 */
	@Override
	public EntityFilter<Speciality> getFilter() {
		return new SpecialityFilter();
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see org.giovanolli.mumi.view.validator.AbstractViewStateModelValidator#getService()
	 */
	@Override
	public Service<Speciality> getService() {
		return specialityService;
	}

}